<%--
  Created by IntelliJ IDEA.
  User: 754165242
  Date: 2022/3/7
  Time: 20:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
        当不同的域对象中存在了相同的key,那么此时el表达式能否正常工作?如果能、它如何工作的?
           el表达式默认从页面域中依次去搜寻,如果我们想从指定域中去获取那么有如下几种操作
              ${pageScope.key}
              ${requestScope.key}
              ${sessionScope.key}
              ${applicationScope.key}
    --%>
<%
    pageContext.setAttribute("msg","葫芦娃");
    request.setAttribute("msg","奥特曼");
    session.setAttribute("msg","狐狸精");
    application.setAttribute("msg","黑猫警长");
%>
${pageScope.msg}  <br>
${requestScope.msg}<br>
${sessionScope.msg}<br>
${applicationScope.msg}
</body>
</html>
